package org.jeecg.modules.scm.api;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.scm.api.factory.ScmFinaApplyApiFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "jeecg-scm/fina_apply/scmFinaApply", fallbackFactory = ScmFinaApplyApiFallbackFactory.class)
@Component
public interface ScmFinaApplyApi {
    //--------------------资金方报文使用-------------------------
    /**
     * 审批
     * */
    @PostMapping(value = "/bank/bankCheckReceive",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public Result<?> bankReceive(@RequestParam(value = "bankDataDto") String bankDataDtos, @RequestPart(required = false) MultipartFile templateContract);

    /**
     * 放款
     * */
    @PostMapping(value = "/bank/bankLendReceive")
    public Result<?> bankLendReceive(@RequestParam(value = "bankDataDto") String bankDataDto);

}
